/**
 * 
 */
package com.xpec.c4.game.utility;

/**
 * 物件的原始權重資訊
 * 
 * @author TW15010
 */
public class WeightItemInfo<T> {
	/**
	 * 權重值
	 */
	private int weight;

	/**
	 * 物件
	 */
	private T object;

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public T getObject() {
		return object;
	}

	public void setObject(T object) {
		this.object = object;
	}

	@Override
	public String toString() {
		return weight + "=" + object;
	}
}
